package com.whm.hrmanagement.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.whm.common.annotation.Excel;
import com.whm.common.core.domain.BaseEntity;
import com.whm.common.enums.ExamineStatusEnum;
import com.whm.common.enums.QjEnum;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 员工请假对象 oa_staff_qj
 * 
 * @author whm
 * @date 2024-02-05
 */
public class OaStaffQj extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 员工id */
    @Excel(name = "员工id")
    private Long staffId;

    /** 请假的天数 */
    @Excel(name = "请假的天数")
    private Long days;

    /** 请假类型id */
    @Excel(name = "请假类型id")
    private QjEnum typeNum;

    /** 请假的开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "请假的开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 0未审核，1审核通过，2驳回，3撤销 */
    @Excel(name = "0未审核，1审核通过，2驳回，3撤销")
    private ExamineStatusEnum status;

    /** 员工名称 */
    @Excel(name = "员工名称")
    private String staffName;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setStaffId(Long staffId)
    {
        this.staffId = staffId;
    }

    public Long getStaffId()
    {
        return staffId;
    }
    public void setDays(Long days)
    {
        this.days = days;
    }

    public Long getDays()
    {
        return days;
    }

    public QjEnum getTypeNum() {
        return typeNum;
    }

    public void setTypeNum(QjEnum typeNum) {
        this.typeNum = typeNum;
    }

    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }

    public ExamineStatusEnum getStatus() {
        return status;
    }

    public void setStatus(ExamineStatusEnum status) {
        this.status = status;
    }

    public void setStaffName(String staffName)
    {
        this.staffName = staffName;
    }

    public String getStaffName()
    {
        return staffName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("staffId", getStaffId())
            .append("days", getDays())
            .append("typeNum", getTypeNum())
            .append("startDate", getStartDate())
            .append("status", getStatus())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("staffName", getStaffName())
            .toString();
    }
}
